package common.splitpage;

import java.util.List;

import common.splitpage.template.PageTemplate;



public class PageInfo {
	public final static String PAGEKIND_JDBC = "jdbc"; 
	public final static String PAGEKIND_HIBERNATE = "hibernate"; 
	public final static String PAGEKIND_LIST = "list"; 
	
	private Condition condition;
	private String pageSql;
	private String countSql;
	
	private String dbType;
	private int pageType = 1;
	private String pageKind;
	
	private Object pageObject;
	
	public int getPageType() {
		return pageType;
	}
	public void setPageType(int pageType) {
		this.pageType = pageType;
	}
	
	public Condition getCondition() {
		return condition;
	}
	public void setCondition(Condition condition) {
		this.condition = condition;
	}
	
	public Object getPageObject() {
		return pageObject;
	}
	public void setPageObject(Object pageObject) {
		this.pageObject = pageObject;
	}
	public String getPageSql() {
		return pageSql;
	}
	public void setPageSql(String pageSql) {
		this.pageSql = pageSql;
	}
	public String getCountSql() {
		return countSql;
	}
	public void setCountSql(String countSql) {
		this.countSql = countSql;
	}
	public String getPageKind() {
		return pageKind;
	}
	public void setPageKind(String pageKind) {
		this.pageKind = pageKind;
	}
	public String getDbType() {
		return dbType;
	}
	public void setDbType(String dbType) {
		this.dbType = dbType;
	}
	public String getHtml(String context,String path) {
		return new PageTemplate(context).getHtml(this, path);
	}
	
}
